export default class gamedata {
    private static _Instance;
    public static get Instance(): gamedata {
        if (!this._Instance)
            this._Instance = new gamedata();
        return this._Instance;
    }
    constructor() {

    }
    //wx===========+***********************==========wxwxwx==================================
    public userInfo: { avatarUrl: string, city: string, country: string, gender: number, language: string, nickName: string, province: string };//微信获取的用户信息
    public encryptedData: string;
    public errMsg: string;
    public iv: string;
    public signature: string;
    public openid = null;
    //wx===========+***********************==========wxwxwx==================================

    public peizhi;//配置信息
    public userData;//用户数据


    private miliNum;//米粒数量
    public set mili(num) {
        this.miliNum = this.mili;
    }

    public get mili() {
        return this.miliNum
    }

    
}


export enum farmerconfig {
    hearBeatTime = 30000,

}